<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui">1
	<p:messages autoUpdate="true" />
	<h:form>
		<h:panelGrid columns="2" style="margin-bottom:10px" cellpadding="5">

			<h:outputText value="Ország: " />
			<p:selectOneMenu value="#{buttonBean.number}">
				<f:selectItem itemLabel="Select One" itemValue="" />
				<f:selectItem itemLabel="Option 1" itemValue="1" />
				<f:selectItem itemLabel="Option 2" itemValue="2" />
				<f:selectItem itemLabel="Option 3" itemValue="3" />
			</p:selectOneMenu>

			<h:outputText value="Grouping: " />
			<p:selectOneMenu value="#{formBean.car}">
				<f:selectItem itemLabel="Select One" itemValue="" />
				<f:selectItems value="#{formBean.cars}" />
			</p:selectOneMenu>

			<h:outputText value="Grouping: " />
			<p:selectOneMenu value="#{customerMaintBean.customer.country}">
				<f:selectItem itemLabel="Select One" itemValue="" />
				<f:selectItems value="#{mainData.countries}" />
			</p:selectOneMenu>



			<p:commandButton update="test" action="#{mainData.renderTest(true)}" value="asd" process="@this" />


			<p:commandButton update="test" action="#{mainData.renderTest(false)}" value="minus" process="@this" />
			<h:panelGroup id="test">
				<h:panelGroup rendered="#{mainData.rendered}">
					<h:panelGrid columns="1">
						<p:inputText></p:inputText>
						<p:inputText></p:inputText>
						<p:inputText></p:inputText>
						<p:inputText></p:inputText>


					</h:panelGrid>

				</h:panelGroup>
			</h:panelGroup>
		</h:panelGrid>

		<p:commandButton value="Submit" update="display" oncomplete="PF('dlg').show()" />

		<p:dialog header="Selected Values" modal="true" showEffect="fade" hideEffect="fade" widgetVar="dlg">
			<h:panelGrid columns="1" id="display">
				<h:outputText value="Value 1: #{customer.countries}" />

				<h:outputText value="Value 2: #{customer.countries}" />
			</h:panelGrid>
		</p:dialog>

	</h:form>
</ui:composition>